<!-- INCLUDE overall_header.html -->
<script src="js/calendar.js"></script>
<h2>Calendar</h2>
<div id="tabs">
	<ul>
        <li><a href="calendar.php"><span>Calendar</span></a></li>
        <li class="activetab"><a href="calendar_post.php"><span>New Event</span></a></li>
    </ul>
</div>

<form id="postform" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}>

<div class="panel bg3" id="postingbox">
	<div class="inner"><span class="corners-top"><span></span></span>
	
	<h3>{L_ADD_EVENT}</h3>
	
	<!-- DEFINE $EXTRA_POSTING_OPTIONS = 1 -->
<fieldset class="fields1">
	<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->

	<!-- IF S_DELETE_ALLOWED -->
	<dl>
		<dt><label for="delete">{L_DELETE_POST}:</label></dt>
		<dd><label for="delete"><input type="checkbox" name="delete" id="delete" /> {L_DELETE_POST_WARN}</label></dd>
	</dl>
	<!-- ENDIF -->
	
	<dl style="clear: left;">
		<dt><label for="subject">{L_EVENT_NAME}:</label></dt>
		<dd><input type="text" name="name" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
	</dl>
    <dl style="clear: left;">
		<dt><label for="subject">{L_EVENT_START}:</label></dt>
		<dd>
		Date:<input class="post" type="text" name="date" id="date" size="10" maxlength="10" tabindex="3" value="{DATE_IN}" readonly="readonly" onfocus="date_show(this);" onclick="event.cancelBubble=true;date_show(this);"/>
		Time:<input class="post" type="text" name="time" id="time" size="10" maxlength="10" tabindex="4" value="{TIME_IN}" readonly="readonly" onfocus="time_show(this);" onclick="event.cancelBubble=true;time_show(this);"/></dd>
	</dl>
    
    
    <dl style="clear: left;">
		<dt><label for="subject">{L_GROUPS}:</label></dt>
		<dd>
        <select name="group[]" class="input" size="{NUM_GROUPS}" multiple="multiple" style="overflow:hidden;" >
      	<!-- BEGIN group_row -->
         	<option value="{group_row.GROUP_ID}" {group_row.GROUP_SELECT}>{group_row.GROUP_NAME}</option>
      	<!-- END group_row -->
      	</select>
        </dd>
	</dl>
	<!-- INCLUDE posting_buttons.html -->
	<div id="smiley-box">
		<!-- IF S_SMILIES_ALLOWED and .smiley -->
			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
		<!-- ENDIF -->
		<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
			<br /><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=350,resizable=yes,scrollbars=yes,WIDTH=300'); return false;">{L_MORE_SMILIES}</a>
		<!-- ENDIF -->

		<!-- IF BBCODE_STATUS -->
		<!-- IF .smiley --><hr /><!-- ENDIF -->
		{BBCODE_STATUS}<br />
		<!-- IF S_BBCODE_ALLOWED -->
			{URL_STATUS}<br />
			{SMILIES_STATUS}
		<!-- ENDIF -->
		<!-- ENDIF -->
	</div>

	<div id="message-box">
		<textarea name="message" id="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox">{MESSAGE}</textarea>
	</div>
</fieldset>

    <span class="corners-bottom"><span></span></span></div>
</div>

<div class="panel bg2">
    <div class="inner"><span class="corners-top"><span></span></span>
    <fieldset class="submit-buttons">
        <input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" />&nbsp;
		<input type="submit" accesskey="c" tabindex="7" name="cancel" value="{L_CANCEL}" class="button1" />
    </fieldset>

    <span class="corners-bottom"><span></span></span></div>
</div>
    
<div class="panel bg3" id="options-panel">
    <div class="inner"><span class="corners-top"><span></span></span>
    <fieldset class="fields1">
        <!-- IF S_BBCODE_ALLOWED -->
            <div><label for="disable_bbcode"><input type="checkbox" name="disable_bbcode" id="disable_bbcode"{S_BBCODE_CHECKED} /> {L_DISABLE_BBCODE}</label></div>
        <!-- ENDIF -->
        <!-- IF S_SMILIES_ALLOWED -->
            <div><label for="disable_smilies"><input type="checkbox" name="disable_smilies" id="disable_smilies"{S_SMILIES_CHECKED} /> {L_DISABLE_SMILIES}</label></div>
        <!-- ENDIF -->
        <!-- IF S_LINKS_ALLOWED -->
            <div><label for="disable_magic_url"><input type="checkbox" name="disable_magic_url" id="disable_magic_url"{S_MAGIC_URL_CHECKED} /> {L_DISABLE_MAGIC_URL}</label></div>
        <!-- ENDIF -->		
    </fieldset>
    <span class="corners-bottom"><span></span></span></div>
</div>


</form>

<script type="text/javascript">
<!--
	subPanels(show_panel);
-->
</script>
<div id="time_java" onmouseout="" onmouseover="" style="display: none; position:absolute;">
<table style="border-collapse:collapse;background:#FFFFFF;border:1px solid #ABABAB;" cellpadding="2">
	<tr>
		<td>
			<select id="hrs" class="select" onchange="setH(this);" name="hrs">
			<option value="01">01</option>
			<option value="02">02</option>
			<option value="03">03</option>
			<option value="04">04</option>
			<option value="05">05</option>
			<option value="06">06</option>
			<option value="07">07</option>
			<option value="08">08</option>
			<option value="09">09</option>
			<option value="10">10</option>
			<option value="11">11</option>
			<option value="12">12</option>
			</select>
		</td>
		<td>
			<select id="mins" class="select" onchange="setM(this);" name="mins">
			<option value="00">00</option>
			<option value="05">05</option>
			<option value="10">10</option>
			<option value="15">15</option>
			<option value="20">20</option>
			<option value="25">25</option>
			<option value="30">30</option>
			<option value="35">35</option>
			<option value="40">40</option>
			<option value="45">45</option>
			<option value="50">50</option>
			<option value="55">55</option>
			</select>
		</td>
		<td>
			<select id="ampm" class="select" onchange="setAP(this);" name="ampm">
			<option value="AM">AM</option>
			<option value="PM">PM</option>
			</select>
		</td>
		<td onclick="time_close();">x</td>
	</tr>
</table>
</div>
<div id="date_java" style="display: none; position:absolute;">
<table id="calender" style="border-collapse:collapse;background:#FFFFFF;border:1px solid #ABABAB;" cellpadding="2">
	<tr>
		<td style="cursor:pointer;" onclick="prev_month();"><img src="images/arrowleftmonth.gif"></td>
		<td colspan="5" id="month_name" align="center" style="font:bold 13px Arial;"></td>
		<td align="right" style="cursor:pointer;" onclick="next_month();"><img src="images/arrowrightmonth.gif"></td>
	</tr>
	<tr>
		<td align=center style="background:#ABABAB;font:12px Arial">S</td>
		<td align=center style="background:#ABABAB;font:12px Arial">M</td>
		<td align=center style="background:#ABABAB;font:12px Arial">T</td>
		<td align=center style="background:#ABABAB;font:12px Arial">W</td>
		<td align=center style="background:#ABABAB;font:12px Arial">T</td>
		<td align=center style="background:#ABABAB;font:12px Arial">F</td>
		<td align=center style="background:#ABABAB;font:12px Arial">S</td>
	</tr>
	<tr>
		<td id="d1" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d2" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d3" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d4" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d5" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d6" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d7" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
	</tr>
	<tr>
		<td id="d8" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d9" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d10" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d11" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d12" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d13" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d14" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
	</tr>
	<tr>		
		<td id="d15" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d16" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d17" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d18" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d19" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d20" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d21" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
	</tr>
	<tr>
		<td id="d22" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d23" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d24" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d25" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d26" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d27" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d28" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
	</tr>
	<tr>
		<td id="d29" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d30" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d31" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d32" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d33" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d34" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d35" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
	</tr>
	<tr>
		<td id="d36" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d37" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d38" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d39" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d40" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d41" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
		<td id="d42" style="border: 1px;width: 18px; height: 18px;">&nbsp;</td>
	</tr>	
</table>
</div>
<!-- INCLUDE overall_footer.html -->